#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	FILE* fp;
	int n = 12345;
	char* s = "123 abcd";
	char date[100];
	fp = fopen("d:\\a.txt", "wt");
	fprintf(fp, "%s", s);
	fclose(fp);
	fopen("d:\\a.txt", "rt");
	fscanf(fp, "%[^\n]", date);
	fclose(fp);
	printf("%s", date);
	return 0;
}
